.class Lcom/netease/newsreader/activity/NewsReader$36;
.super Ljava/lang/Thread;
.source "NewsReader.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/NewsReader;->getCommentsThread(Ljava/lang/String;Landroid/os/Message;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;

.field private final synthetic val$msg:Landroid/os/Message;

.field private final synthetic val$type:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;Ljava/lang/String;Landroid/os/Message;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iput-object p2, p0, Lcom/netease/newsreader/activity/NewsReader$36;->val$type:Ljava/lang/String;

    iput-object p3, p0, Lcom/netease/newsreader/activity/NewsReader$36;->val$msg:Landroid/os/Message;

    .line 3974
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 3976
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->val$type:Ljava/lang/String;

    const-string v1, "top"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3977
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$43(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 3978
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$43(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    const/16 v2, 0x14

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1, v2, v3}, Lcom/netease/newsreader/rss/GetComments;->getTopCommentsList(IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 3986
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$36;->val$msg:Landroid/os/Message;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 3987
    return-void

    .line 3979
    :cond_1
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->val$type:Ljava/lang/String;

    const-string v1, "day"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 3980
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$49(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 3981
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$49(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v0

    const-string v1, "today"

    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1, v2}, Lcom/netease/newsreader/rss/GetComments;->getRankCommentsList(Ljava/lang/String;Landroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    .line 3982
    :cond_2
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->val$type:Ljava/lang/String;

    const-string v1, "week"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3983
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$52(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 3984
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$52(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v0

    const-string v1, "week"

    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$36;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1, v2}, Lcom/netease/newsreader/rss/GetComments;->getRankCommentsList(Ljava/lang/String;Landroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0
.end method
